// Testprogramm fÃ¼r SplashScreen-Klassen
package sun.scheduler.gui;

import java.awt.*; // Fuer Klasse Dimension

public class SplashTest {

    private SplashScreen m_splashScreen;
    private String m_strImagePath = "media/splash";
    private Dimension m_dimImageSize = null;
 
    
    public static void main(String[] strArgs) {
        new SplashTest();
    }

    public SplashTest() {
        Toolkit tk = Toolkit.getDefaultToolkit();
        m_dimImageSize = tk.getScreenSize();
        if ((double)m_dimImageSize.width/m_dimImageSize.height == (double)16/9.0) {
            m_strImagePath = m_strImagePath+"16_9.png";
        } else if ((double)m_dimImageSize.width/m_dimImageSize.height == (double)4/3.0) {
            m_strImagePath = m_strImagePath+"4_3.png";
        } else if ((double)m_dimImageSize.width/m_dimImageSize.height == (double)5/4.0) {
            m_strImagePath = m_strImagePath+"5_4.png";
        } else {
            m_strImagePath = m_strImagePath+"8_5.png";
        }

        m_splashScreen = new SplashScreen(m_strImagePath, m_dimImageSize);
        m_splashScreen.start();

        try {
            Thread.sleep(8000);   // 8 Sekunden anzeigen lassen
        } catch (InterruptedException e) {
        }

        m_splashScreen.destroy();
        //MainWindow.main(null);
        MainWindow.main(null);
        

    }
}
